package models

import "gorm.io/gorm"

type Shop struct {
	gorm.Model
	Name    string `gorm:"type:varchar(20)" json:"name"`
	Img     string `gorm:"type:varchar(255)" json:"img"`
	Cate    string `gorm:"type:varchar(30)" json:"cate"`
	Uptime  string `gorm:"type:varchar(20)" json:"uptime"`
	Tel     string `gorm:"type:varchar(11)" json:"tel"`
	Address string `gorm:"type:varchar(20)" json:"address"`
	Detail  string `gorm:"type:varchar(30)" json:"detail"`
}

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)" json:"username"`
	Password string `gorm:"type:varchar(50)" json:"password"`
}
